package com.hmall.order.config;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DelayConfig {

    /*@Bean
    public DirectExchange delayedTtlExchange(){
        return new DirectExchange("order.direct",true,false);
    }

    @Bean
    public Queue delayedTtlQueue(){
        return QueueBuilder
                .durable("order.queue") //持久化
                .deadLetterExchange("order.xf.direct")
                .deadLetterRoutingKey("xf")
                .build();
    }

    @Bean
    public Binding delayedBinding(){
        return BindingBuilder.bind(delayedTtlQueue()).to(delayedTtlExchange()).with("order");
    }*/
}
